package org.farng.mp3.lyrics3;

import org.farng.mp3.InvalidTagException;
import org.farng.mp3.object.ObjectStringSizeTerminated;

import java.io.RandomAccessFile;


/**
 * DOCUMENT ME!
 *
 * @author Eric Farng
 * @version $Revision: 1.2 $
 */
public class FieldBodyINF extends AbstractLyrics3v2FieldBody {
    /**
     * Creates a new FieldBodyINF object.
     */
    public FieldBodyINF() {
        //        this.setObject("Additional Information", "");
    }

    public FieldBodyINF(FieldBodyINF body) {
        super(body);
    }

    /**
     * Creates a new FieldBodyINF object.
     *
     * @param additionalInformation DOCUMENT ME!
     */
    public FieldBodyINF(String additionalInformation) {
        this.setObject("Additional Information", additionalInformation);
    }

    /**
     * Creates a new FieldBodyINF object.
     *
     * @param file DOCUMENT ME!
     *
     * @throws InvalidTagException DOCUMENT ME!
     * @throws java.io.IOException DOCUMENT ME!
     */
    public FieldBodyINF(RandomAccessFile file)
                 throws InvalidTagException, java.io.IOException {
        this.read(file);
    }

    /**
     * DOCUMENT ME!
     *
     * @param additionalInformation DOCUMENT ME!
     */
    public void setAdditionalInformation(String additionalInformation) {
        setObject("Additional Information", additionalInformation);
    }

    /**
     * DOCUMENT ME!
     *
     * @return DOCUMENT ME!
     */
    public String getAdditionalInformation() {
        return (String) getObject("Additional Information");
    }

    /**
     * DOCUMENT ME!
     *
     * @return DOCUMENT ME!
     */
    public String getIdentifier() {
        return "INF";
    }

    /**
     * DOCUMENT ME!
     */
    protected void setupObjectList() {
        objectList.add(new ObjectStringSizeTerminated("Additional Information"));
    }
}